package kdb.spring.dao;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository //id=suggestDaoImpl
public class SuggestDaoImpl {
	@Autowired
	private SqlSession sqlSession;
	
	 public List<String> suggest(String word) {
	  return sqlSession.selectList("sug.suggest",word);
	 }
}
